import { post, download } from '@/http/request'

/**
 * 观测设备分页查询
 * @param {*} params
 * @returns
 */
export const observePageList = params => {
    return post({
        url: '/water/device/observe/pageList',
        params
    })
}

/**
 * 观测设备不带分页查询
 * @param {*} params
 * @returns
 */
export function observeListAll(params) {
    return post({
        url: '/water/device/observe/listAll',
        params
    })
}

/**
 * 观测设备新增数据
 * @param {*} params
 * @returns
 */
export const observeAdd = params => {
    return post({
        url: '/water/device/observe/save',
        params
    })
}

/**
 * 观测设备修改数据
 * @param {*} params
 * @returns
 */
export const observeUpdate = params => {
    return post({
        url: '/water/device/observe/update',
        params
    })
}

/**
 * 观测设备删除数据
 * @param {*} params
 * @returns
 */
export const observeDel = params => {
    return post({
        url: '/water/device/observe/delete',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const exportExcel = params => {
    return download({
        url: '/water/device/observe/exportExcel',
        params
    })
}

/**
 * 导出数据
 * @param {*} params
 * @returns
 */
export const importExcel = params => {
    return download({
        url: '/water/device/observe/exportExcel',
        params
    })
}

/**
 * 模板下载
 * @param {*} params
 * @returns
 */
export const downloadDeviceTemplate = params => {
    return download({
        url: '/water/device/observe/downloadTemplate',
        params
    })
}
